package com.tn.openrpc.client
{
	import flash.events.IEventDispatcher;

	public interface IStompClient extends IEventDispatcher
	{
		function get connected():Boolean;

		function ack(messageId:String, transactionId:String = "", receiptId:String = "", headers:* = null):void;

		function begin(id:String, receiptId:String = "", headers:* = null):void;

		function commit(id:String, receiptId:String = "", headers:* = null):void;

		function connect():void;

		function disconnect():void;

		function send(body:*, destination:String, transactionId:String = "", receiptId:String = "", headers:* = null):void;

		function subscribe(destination:String, acknowledgement:String = "", receiptId:String = "", headers:* = null):void;

		function unsubscribe(destination:String, receiptId:String = "", headers:* = null):void
	}
}
